home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: 2 C under VMS questions
- Date: 11 Jan 1996 20:04:49 GMT
- Organization: Los Alamos National Laboratory
- Distribution: world
- Message-ID: <TANMOY.96Jan11130449@qcd.lanl.gov>
- References: <4d3eok$hm4@netope.harvard.edu>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: richard@phdcn.harvard.edu's message of 11 Jan 1996 16:44:04 GMT
-
- --text follows this line--
- In article <4d3eok$hm4@netope.harvard.edu> richard@phdcn.harvard.edu
- (Richard Congdon) writes:
- <snip>
- A couple questions for VMS C gurus"
-
- I know hardly anything about VMS C.
-
- 1) Is there any way to do this on VMS?
- freopen(optarg,"rt",stdin)
- This call fails. Do I want something other than stdin?
-
- if you want to reopen stdin, I fail to see how you can want anything
- else. If optarg is a pointer to the first character of a string, then
- why not try the ANSI standard
-
- freopen(optarg,"r",stdin);
-
- instead. (At least, if that does not work, you can compiler it on an
- ANSI C system on the VMS: one must exist :-)
-
- 2) Is there any functional equivalent to Unix ftruncate() or DOS chsize()?
-
- Don't know. You can trivially change something to zero size, but more
- than that I do not know.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-